package com.example.mapper;

import com.example.entity.Customer;
import com.example.entity.Foodtable;
import com.example.entity.MenuOrder;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FoodtableMapper {
    @Select("select * from foodtable where table_condition=#{tablecondition} ")
    Foodtable findBytablecondition(String tablecondition);
    void updata(Foodtable foodtable);
    @Insert("insert into foodtable(people_number, table_condition) value(#{peopleNumber},#{tableCondition})")
    void insert(Foodtable foodtable);
    @Delete("DELETE FROM foodtable WHERE table_id = #{table_id}")
    void delete(String table_id);

    List<Foodtable> selectByPage(String tableCondition);
}
